package com.example.demo.pattern.proxy.staticp;

/**
 * @program: demo
 * @description: 测试静态代理
 * @author: yby
 * @create: 2020-06-23 13:55
 **/
public class TestProxyp {

    public static void main(String[] args) {

        // 测试静态模式
        ProxyService proxyService = new BuyHouseProxy();
        //proxyService.buyHouse();

        // 测试装饰者模式
        ProxyService proxy = new DecorateProxy(new BuyHouse());
        proxy.buyHouse();

    }
}
